#include <stdio.h>

int main()
{
    int n, i, left = 1;
    scanf("%d", &n);
    //yesterday: x  ==>  y = (x / 2 - 1)  <==  x = (y + 1) * 2
    for (i = n - 1; i >= 1; i--)
    {
        left = (left + 1) * 2;
    }
    printf("%d\n", left);
    return 0;
}
